package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Completion;
import tech.aistar.mapper.CompletionMapper;
import tech.aistar.service.ICompletionService;

import java.util.List;

@Service
public class CompletionServiceImpl implements ICompletionService {
    @Autowired
    private CompletionMapper completionMapper;
    @Override
    public List<String> findcomstem() {
       return completionMapper.findcomstem();
    }
    @Override
    public List<String> findcomlanguage() {
        return completionMapper.findcomlanguage();
    }
    @Override
    public String findstemans(String stem) {
        return completionMapper.findstemans(stem);
    }

    @Override
    public List<Completion> findAll() {
        return completionMapper.findAll();
    }

    @Override
    public Completion findById(Long id) {
        return completionMapper.findById(id);
    }

    @Override
    public List<Completion> findByPaperId(Long paperId) {
        return completionMapper.findByPaperId(paperId);
    }

    @Override
    public String findAnswerByid(Long id) {
        return completionMapper.findAnswerByid(id);
    }
}
